﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OL.FrameCore.Application.Article.Dto
{
    public class GetArticleListResponse
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Tags { get; set; }
        public DateTime ReleaseTime { get; set; }
        public int Status { get; set; }
        public string StatusText
        {
            get
            {
                switch (Status)
                {
                    case 0:
                        return "待发布";
                    case 1:
                        return "已发布";
                    case 2:
                        return "已关闭";
                }
                return "";
            }
        }
        public int CreateId { get; set; }
        public string CreateName { get; set; }
        public DateTime CreateTime { get; set; }
        public int UpdateId { get; set; }
        public string UpdateName { get; set; }
        public DateTime UpdateTime { get; set; }
    }
}
